GtkTooltip: Move nonexported API to a private header
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Oct 2014 02:51:21 +0000 (22:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Oct 2014 02:51:21 +0000 (22:51 -0400)
This is our standard practice nowadays.

gtk/Makefile.am
gtk/gtkdnd.c
gtk/gtkmain.c
gtk/gtktooltip.c
gtk/gtktooltip.h
gtk/gtktooltipprivate.h [new file with mode: 0644]
gtk/gtkwidget.c

index 8f986091a5a9a5fd4fc11fbfec936df69301ec70..ee3293274a7252ed39165ec70f003e2d0a16ea5b 100644 (file)
@@ -672,6 +672,7 @@ gtk_private_h_sources =             \
        gtktogglebuttonprivate.h \
        gtktoolbarprivate.h     \
        gtktoolpaletteprivate.h \
+       gtktooltipprivate.h     \
        gtktreedatalist.h       \
        gtktreeprivate.h        \
        gtkwidgetprivate.h      \
index 6d2ad0e83d7d41544bf8d102262b8564e2063f95..50914e276e656a6d9da822e54c09705b88a3822b 100644 (file)
@@ -48,7 +48,7 @@
 #include "gtkicontheme.h"
 #include "gtkmain.h"
 #include "gtkplug.h"
-#include "gtktooltip.h"
+#include "gtktooltipprivate.h"
 #include "gtkwindow.h"
 #include "gtkintl.h"
 #include "gtkselectionprivate.h"
index d8c344f750412380cb0811bd8df54dc07e6f383b..e19691c0c573b76cdfc57861945c4617d3a4cc99 100644 (file)
 #include "gtkrecentmanager.h"
 #include "gtkselectionprivate.h"
 #include "gtksettingsprivate.h"
-#include "gtktooltip.h"
+#include "gtktooltipprivate.h"
 #include "gtkversion.h"
 #include "gtkwidgetprivate.h"
 #include "gtkwindowprivate.h"
index 103944f2f0e2e043c7155d3e36e15e49ede3f8b7..8c3f2dfb282e10272cceb60d03988e22199a51dd 100644 (file)
@@ -20,6 +20,7 @@
 #include "config.h"
 
 #include "gtktooltip.h"
+#include "gtktooltipprivate.h"
 
 #include <math.h>
 #include <string.h>
index 7af3c42a45e7c3955542120dd981d00985a42f08..87a105f585cf7b1b421b004e9a4e15eadb9921f3 100644 (file)
@@ -68,18 +68,6 @@ GDK_AVAILABLE_IN_ALL
 void gtk_tooltip_trigger_tooltip_query   (GdkDisplay         *display);
 
 
-void _gtk_tooltip_focus_in               (GtkWidget          *widget);
-void _gtk_tooltip_focus_out              (GtkWidget          *widget);
-void _gtk_tooltip_toggle_keyboard_mode   (GtkWidget          *widget);
-void _gtk_tooltip_handle_event           (GdkEvent           *event);
-void _gtk_tooltip_hide                   (GtkWidget          *widget);
-
-GtkWidget * _gtk_widget_find_at_coords   (GdkWindow          *window,
-                                          gint                window_x,
-                                          gint                window_y,
-                                          gint               *widget_x,
-                                          gint               *widget_y);
-
 G_END_DECLS
 
 #endif /* __GTK_TOOLTIP_H__ */
diff --git a/gtk/gtktooltipprivate.h b/gtk/gtktooltipprivate.h
new file mode 100644 (file)
index 0000000..427015e
--- /dev/null
@@ -0,0 +1,49 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2014 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/*
+ * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
+ * file for a list of people on the GTK+ Team.  See the ChangeLog
+ * files for a list of changes.  These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#ifndef __GTK_TOOLTIP_PRIVATE_H__
+#define __GTK_TOOLTIP_PRIVATE_H__
+
+
+#include <gtk/gtktooltip.h>
+
+
+G_BEGIN_DECLS
+
+void _gtk_tooltip_focus_in               (GtkWidget          *widget);
+void _gtk_tooltip_focus_out              (GtkWidget          *widget);
+void _gtk_tooltip_toggle_keyboard_mode   (GtkWidget          *widget);
+void _gtk_tooltip_handle_event           (GdkEvent           *event);
+void _gtk_tooltip_hide                   (GtkWidget          *widget);
+
+GtkWidget * _gtk_widget_find_at_coords   (GdkWindow          *window,
+                                          gint                window_x,
+                                          gint                window_y,
+                                          gint               *widget_x,
+                                          gint               *widget_y);
+
+G_END_DECLS
+
+
+#endif /* __GTK_TOOLTIP_PRIVATE_H__ */
index 000851928221f0e4de045600103f1c9aba948a6e..a993db3f4d9ffbc7e7035fb3ddb66f911aba5ae4 100644 (file)
@@ -53,7 +53,7 @@
 #include "gtkbindings.h"
 #include "gtkprivate.h"
 #include "gtkaccessible.h"
-#include "gtktooltip.h"
+#include "gtktooltipprivate.h"
 #include "gtkinvisible.h"
 #include "gtkbuildable.h"
 #include "gtkbuilderprivate.h"